package team.paimengshop.server_dataclass;

import java.util.ArrayList;

public class Order
{
    private ArrayList<Commodity> commodityList;//商品列表

    private int id;        //订单编号
    private double payment;        //付款数额

    private int userId;       //商品购买者

    private String address;//商品发货地点

    private int commodityNumber;

    public Order()
    {
        this.id = -1;
        this.commodityList = null;
        this.userId = -1;
        this.payment = -1;
        this.address = null;
        this.commodityNumber = -1;
    }
    public Order(int id, ArrayList<Commodity> commodityList, int userId, double payment, String address, int commodityNumber)
    {
        this.id = id;
        this.commodityList = commodityList;
        this.userId = userId;
        this.payment = payment;
        this.address = address;
        this.commodityNumber = commodityNumber;
    }

    public void setCommodityList(ArrayList<Commodity> commodityList)
    {
        this.commodityList = commodityList;
    }

    public ArrayList<Commodity> getCommodityList()
    {
        return commodityList;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public int getId()
    {
        return id;
    }

    public void setPayment(double payment)
    {
        this.payment = payment;
    }

    public double getPayment()
    {
        return payment;
    }

    public void setUserId(int userId)
    {
        this.userId = userId;
    }

    public int getUserId()
    {
        return userId;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    public void setCommodityNumber(int commodityNumber)
    {
        this.commodityNumber = commodityNumber;
    }

    public int getCommodityNumber()
    {
        return commodityNumber;
    }
}
